package com.wangyk.rabbitmqconsole;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.servlet.MultipartAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

//@EnableAutoConfiguration(exclude = {MultipartAutoConfiguration.class})
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
//扫描该包下的注解，默认扫描启动类同级包下的注解，由于不在同一个项目下
@ComponentScan({"com.wangyk.rabbitmqconsole", "com.wangyk.rabbitmqcommon"})
//过滤器扫描注解
@ServletComponentScan
@SpringBootApplication
//注册Eureka的client端
@EnableDiscoveryClient
public class RabbitmqconsoleApplication
{
    public static void main(String[] args)
    {
        LogUtil.initLogEnv("rabbitmq-console",LogUtil.getHostAddress());
        SpringApplication.run(RabbitmqconsoleApplication.class, args);
    }
}

